package org.slsale.service.user;

import org.slsale.dao.user.UserMapper;
import org.slsale.pojo.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserMapper userMapper;

    @Override
    public User getLoginUser(User user) throws Exception {
        return userMapper.getLoginUser(user);
    }

    @Override
    public int loginCodeIsExist(User user) throws Exception {
        return userMapper.loginCodeIsExist(user);
    }

    @Override
    public int modifyUser(User user) throws Exception {
        return userMapper.modifyUser(user);
    }
}
